//
//  YZMAppStyle.h
//  YZMicroStock
//
//  Created by wangminhong on 16/3/21.
//  Copyright © 2016年 cqjr. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

#define YZMSWitchOn     [[YZMBundleVersionControlService sharedService] isShowTrade]
#define YZMScreenWidth  [UIScreen mainScreen].bounds.size.width
#define YZMScreenHeight [UIScreen mainScreen].bounds.size.height


#define PAGECONTENTMARGIN 25

@class YZMBankCardModel;

@interface YZMAppStyle : NSObject

+ (void)customAppApearance;

#pragma mark -- colors


///背景色#0E1821
+ (UIColor *)appBackgroundColor;

///红色#F33737
+ (UIColor *)colorForRiseText;

///绿色#40B926
+ (UIColor *)colorForDropText;

///用于分割模块底色
+ (UIColor *)colorForMain;

///用户导航栏背景颜色
+ (UIColor *)colorForBarBGColor;

///黑色或者白色的文字颜色
+ (UIColor *)colorForMainTextColor;

///tabbar颜色
+ (UIColor *)tabbarBackgroundColor;

///大部分按钮可点击状态下的颜色
+ (UIColor *)buttonSelectedColor;

///蓝色文字，多用于协议 #49A7F6
+ (UIColor *)colorForBlueText;

///黑色#FF222222
+ (UIColor *)colorForBlackText;

+ (UIColor *)colorForRedText;

///灰色#FF666666
+ (UIColor *)colorForGrayText;

///灰色#FF999999
+ (UIColor *)colorForLightGrayText;

///按钮不可用的颜色
+ (UIColor *)colorForGrayUnable;

///分割线颜色
+ (UIColor *)colorForLine;

//虚线颜色
+ (UIColor *)colorForSeparatorLine;

///白色#FFFFFF
+ (UIColor *)colorForWhite;

///高亮状态颜色
+ (UIColor *)colorForHighted;

///浅蓝色文字#3183E8
+ (UIColor *)colorForLightBlueText;

+ (UIColor *)colorForBankRed;

+ (UIColor *)colorForLightWhite;

+ (UIColor *)colorForgray;
//边框颜色;
+ (UIColor *)colorForBoder;

///自定义颜色
+ (UIColor *)colorForString:(NSString *)string;

///渐变
+ (void)colorWithView:(UIView *)view withLayer:(CAGradientLayer *)layer withColorArray:(NSArray *)array;

#pragma mark -- Font

+ (UIFont *)fontWithSize:(float)size;
+ (UIFont *)boldFontWithSize:(float)size;

///提示等大号字体17Bold
+ (UIFont *)largeSizeBoldFont;

///提示等大号字体17
+ (UIFont *)largeSizeFont;

///提示的中型字体14Bold
+ (UIFont *)mediumSizeBoldFont;

///提示的中型字体14
+ (UIFont *)mediumSizeFont;

///小型字体12Bold
+ (UIFont *)smallSizeBoldFont;

///小型字体12
+ (UIFont *)smallSizeFont;

///大号字体40
+ (UIFont *)bigSizeFont;


#pragma mark - labels

+ (UILabel *)labelWithFont:(UIFont *)font andColor:(UIColor *)color;
+ (UILabel *)labelWithLargeBlack;
+ (UILabel *)labelWithMediumGray;
+ (UILabel *)labelWithMediumLightGray;
+ (UILabel *)labelWithSmallLightGray;
+ (UILabel *)labelWithLargeLightGray;
+ (UILabel *)labelWithWhite;
+ (UILabel *)labelWithGigWhite;
+ (UILabel *)labelWithLargeGray;
+ (UILabel *)labelWithMediumBlack;
+ (UILabel *)labelWithMediumRise;
+ (UILabel *)labelWithSmallGray;

///大型白色字体Lable
+ (UILabel *)labelWithLargeWhite;

///中型白色字体Lable
+ (UILabel *)labelWithMediumWhite;

///小型白色字体Lable
+ (UILabel *)labelWithSmallWhite;

///小型黄色字体Lable
+ (UILabel *)labelWithSmallYellow;

///大型黄色字体Lable
+ (UILabel *)labelWithLargeYellow;

#pragma mark -- view

///灰色分割线
+ (UIView *)splitLine;

///蓝色分割线
+ (UIView *)grayUnableLine;

#pragma mark -- buttons

///红色提交按钮
+ (UIButton *)submitButton;

///蓝色问号按钮
+ (UIButton *)explainButton;

///我的页面 注册 登录按钮
+ (UIButton *)regButton;

#pragma mark -- images

///顶部导航栏背景色
+ (UIImage *)barBackgroundImage;

///顶部导航栏白色返回按钮
+ (UIImage *)barBackImage;


#pragma mark -- barItem

+ (UIBarButtonItem *)leftBarItemWithTitle: (NSString *)title target: (id)target action: (SEL)selector;
+ (UIBarButtonItem *)leftBarItemWithImage: (NSString *)imageName target: (id)target action: (SEL)selector;
+ (UIBarButtonItem *)rightBarItemWithTitle: (NSString *)title target: (id)target action: (SEL)selector;
+ (UIBarButtonItem *)rightBarItemWithImage: (NSString *)imageName target: (id)target action: (SEL)selector;

///文本框
+ (UITextField *)inputTextField;

#pragma mark -- V2.3 Color

///小面积使用，用于突出数值，标签栏icon  FFD900
+ (UIColor *)colorForIconColor;

///使用于所有按钮   F5C300
+ (UIColor *)colorForYellowButton;

///仅用于股票显示标框   DB4E54
+ (UIColor *)colorForRedMark;

///用于分割线  1C262F
+ (UIColor *)colorForSplitLine;

///用于标签栏底色  131E29
+ (UIColor *)colorForLabelMark;

#pragma mark -- V2.3 Font

///小红色的label
+ (UILabel *)labelWithRedBGAndWhiteFont;

///选择方式label
+ (UILabel *)labelWithBuyWay;

///选择日期
+ (UIButton *)chooseDateBtn;

#pragma mark -- 2017.1 newAdd

///推广详情推广员等级背景色  #FFF4C6
+ (UIColor *)colorForstar;

///推广详情 推广员等级文本颜色
+ (UIColor *)colorForSpreadText;

//新样式按钮按钮边框灰色
+(UIColor *)colorForbuttonLineColor;

//输入框边框颜色
+(UIColor *)colorForInputLineColor;

///推广详情界面文本黄色#FFF500
+ (UIColor *)colorForDetailTextYellow;

///推广详情界面相关label创建
+ (UILabel *)labelForSpreadDetailWithFont:(UIFont *)font andColor:(UIColor *)color;

///登录提交相关按钮无法点击的样式
+ (UIButton *)NewsubmitButton;

///用户推广赚钱界面一些背景颜色
+ (UIColor *)colorForSpreadBg;

#pragma mark v2.5

///首页策略动态第二种色彩
+(UIColor *)trendColorSecond;


///首页策略动态第二种色彩
+(UIColor *)trendColorThird;

///设置不同的颜色
+(NSMutableAttributedString *)AttributedAndStr:(NSString *)content andAttributeStyle:(NSArray *)styleArr;


///账户余额界面金额颜色
+(UIColor *)colorforLineAvailMoney;

+ (UIColor *)colorForLineOfCell;

+ (void)addLineViewWithParentView:(id)iv color:(UIColor *)color;

+ (void)addTopLineViewWithParentView:(id)iv color:(UIColor *)color;

+ (void)addLeftLineViewWithParentView:(id)iv color:(UIColor *)color;

@end
